﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.NetworkInformation;

namespace KTDS_PING_CHECK
{
    class C_Ping
    {
        public bool CheckThePing(string IpInfo)
        {
            Ping pinger = new Ping();
            PingReply reply = default(PingReply);

            reply = pinger.Send(IpInfo,1);
            bool status = false;

            if (reply.Status == IPStatus.Success)
            {
                status = true;
            }
            else
            {
                status = false;
            }

            return status;
        }
    }
}
